package cn.com.greatwall.system.modules.system.repository;

import java.util.Set;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import cn.com.greatwall.system.modules.system.domain.Job;

/**
 * @Author herw
 * @Time 2020-07-07 4:12:00 PM
 * @Version 1.0
 * @Description:
 */
public interface JobRepository extends JpaRepository<Job, Long>, JpaSpecificationExecutor<Job> {
    /**
     * 根据名称查询
     * 
     * @param name 名称
     * @return /
     */
    Job findByName(String name);

    /**
     * 根据Id删除
     * 
     * @param ids /
     */
    void deleteAllByIdIn(Set<Long> ids);
}
